package com.qst.mapper;

import com.qst.entity.Team;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeamMapper {
    @Select("select id,name,begin_year,status,creator_id from class_teams where creator_id=#{creatorId}")
    List<Team> findByCreator(Integer id);

    List<Team> findAll();

    Team findById(Integer id);

    void insert(Team t);

    void update(Team t);

    void delete(int id);
}
